package com.acme.bankapp.service.bank;

import com.acme.domain.bank.Account;
import com.acme.domain.bank.CheckingAccount;
import com.acme.domain.bank.SavingAccount;

public class AccountFactory {

	public Account getAccount(int i){
		if(i%2 == 0)
			return new SavingAccount();
		else
			return new CheckingAccount();
	}
	
}
